Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(alerts): better message for missing target ID #79737

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

mifu67
Copy link
Contributor

@mifu67 mifu67 commented Oct 24, 2024

target_identifier is required by the alert rule trigger action serializer. Previously, if this field was left blank, then the serializer would return the default "this field may not be blank" error message. Surface a more descriptive message to the user instead.

Fixes https://github.com/getsentry/team-core-product-foundations/issues/155

Copy link

sentry-io bot commented Oct 24, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: src/sentry/incidents/serializers/alert_rule_trigger.py

Function Unhandled Issue
_handle_actions AlertRuleTriggerAction.DoesNotExist: AlertRuleTriggerAction matching query does not exist. sentry.integrations.sl...
Event Count: 1

Did you find this useful? React with a 👍 or 👎

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 24, 2024
Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #79737      +/-   ##
==========================================
- Coverage   78.45%   78.45%   -0.01%     
==========================================
  Files        7144     7140       -4     
  Lines      315931   315939       +8     
  Branches    43472    43477       +5     
==========================================
- Hits       247869   247863       -6     
- Misses      61736    61746      +10     
- Partials     6326     6330       +4     

@mifu67 mifu67 marked this pull request as ready for review October 25, 2024 17:55
@mifu67 mifu67 requested a review from a team as a code owner October 25, 2024 17:55
@mifu67 mifu67 requested a review from ceorourke October 25, 2024 18:54
Copy link
Member

@ceorourke ceorourke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beautiful, thank you!

@mifu67 mifu67 merged commit 04fd513 into master Oct 28, 2024
51 checks passed
@mifu67 mifu67 deleted the mifu67/better-msg-blank-target-id branch October 28, 2024 15:29
@github-actions github-actions bot locked and limited conversation to collaborators Nov 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants